package com.yummy.service;

import com.yummy.entity.ShoppingCart;

import java.util.List;

public interface ShoppingCartService {

	ShoppingCart getCartsByUserAndDish(Integer userId, Long dishId);

	boolean addCart(ShoppingCart shoppingCart);

	boolean updateCart(ShoppingCart cart);

	List<ShoppingCart> queryAllByUserAndStore(Integer userId, int storeId);

	boolean remove(ShoppingCart cart);

	boolean clearCarts(List<ShoppingCart> cartList);
}
